package com.inspur.dgov.bsp.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.inspur.dgov.bsp.user.entity.PubOrganRelation;

/**
 * 组织关系 服务类
 *
 * @author chiyupei
 * @version 1.0
 * @since 1.0
 */
public interface PubOrganRelationService extends IService<PubOrganRelation> {

    /**
     * 递归添加组织机构系
     * @param relation
     * @return
     */
    boolean insertRecursionOrganRelation(PubOrganRelation relation);

    /**
     * 分离子树,删除子树节点与其祖先的关系
     * @param relation
     */
    boolean separateOrganRelation(PubOrganRelation relation);

    /**
     * 移动子树，用笛卡尔积嫁接
     * @param relation
     */
    boolean moveOrganRelation(PubOrganRelation relation);
}
